package com.usian.article.controller;

import com.usian.apis.behavior.ApCollectionBehaviorControllerApi;
import com.usian.article.service.impl.ApCollectionServiceImpl;
import com.usian.model.article.dtos.CollectionBehaviorDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/article")
public class ApCollectionController implements ApCollectionBehaviorControllerApi {
    @Autowired
    private ApCollectionServiceImpl apCollectionService;


    @PostMapping("/collection")
    @Override
    public ResponseResult collection(@RequestBody CollectionBehaviorDto dto) {
        return apCollectionService.collection(dto);
    }
}
